import {
  createRouter,
  createWebHashHistory,
  createWebHistory
} from 'vue-router'
import Home from '../views/home'

const routes = [{
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/article/:id',
    name: 'ArticleId',
    component: () => import( /* webpackChunkName: "article" */ '../views/info')
  },
  {
    path: '/article',
    name: 'Article',
    component: () => import( /* webpackChunkName: "article" */ '../views/article')
  },
  {
    path: '/project',
    name: 'Project',
    component: () => import( /* webpackChunkName: "project" */ '../views/project')
  },
  {
    path: '/message',
    name: 'Message',
    component: () => import( /* webpackChunkName: "message" */ '../views/message')
  },
  {
    path: '/about',
    name: 'About',
    component: () => import( /* webpackChunkName: "about" */ '../views/about')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router